home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / games / _hextris / sprites / _readme next >
Encoding:
Text File  |  1993-01-12  |  3.4 KB  |  79 lines

  1. Below is a list of the spritefiles supplied with Hextris as default. The
  2. filename is listed together with the dimensions of the sprites and a note
  3. about their appearance. The mode the sprites are defined in, is also listed.
  4.  
  5. filename        width   height  mode    note
  6. ------------------------------------------------
  7. 212_large       12      6       12      large size
  8. 212_medium      21      10      12      medium size
  9. 212_small       16      8       12      small size
  10.  
  11. 312_large       12      6       15      large size, shaded
  12. 312_medium      21      10      15      medium size, shaded
  13. 312_small       16      8       15      small size, shaded
  14.  
  15. 211_large       12      12      20      large size
  16. 211_medium      20      10      20      medium size
  17. 211_small       16      16      20      small size
  18.  
  19. 112_large       12      12      8       large size
  20. 112_medium      20      10      8       medium size
  21. 112_small       16      16      8       small size
  22.  
  23. 312_lhomo       12      6       15      large size, homegeneous colouring
  24. 312_mhomo       21      10      15      medium size, homegeneous colouring
  25. 312_shomo       16      8       15      small size, homegeneous colouring
  26.  
  27.  
  28.  
  29. Make your own Hextris sprites
  30. _________________________________________________
  31.  
  32. If you are making your own sprites for use by Hextris, you must obey the
  33. following rules:
  34.  
  35. 1 The spritefile must consist of sprites, which are all defined in the same
  36. screen mode. Furthermore, all sprites must have the same dimensions.
  37.  
  38. 2 The spritefile must contain at least three sprites.
  39.  
  40. 2a The first sprite in a spritefile is used for masking and the interior of
  41. the hexagon should thus be totally filled with non-transparent pixels (the
  42. latter is not a necessity, though strange effects will occur, not fulfilling
  43. this point!). The first line in the mask sprite *must* contain some
  44. non-transparent pixels --- Hextris uses this sprite to compute information
  45. for drawing the sprites.
  46.  
  47. 2b The second sprite in a spritefile is used for the borders of the Hextris
  48. playarea.
  49.  
  50. 2c The third and remaining sprites are used for the bricks. We call the the
  51. brick-sprites. Hextris will use at most ten different sprites. The
  52. spritefile need not necessarily contain a sprite for each of the ten
  53. different bricks --- Hextris will use whatever number of brick-sprites the
  54. spritefile contains.
  55.  
  56. 3 For the best appearance, the sprites should have an even height, though
  57. the width may be odd. A trick to get a good look is to keep an outline of
  58. transparent pixels around each sprite (In the spritefiles supplied, you can
  59. study this --- most of them have an outline of transparent pixels at the
  60. bottom and right of the hexagon).
  61.  
  62. 4 The spritefile must be named thus 'BXY_abcdef'. 'abcdef' is a name of your
  63. own choice, whereas 'BXY' is a three digit sequence, as described below.
  64.  
  65. 4a 'M' is the base two logarithm of the number of bits per pixel (BPP) of
  66. the mode the sprites are defined in ('2' for a 16 colour mode, '3' for a 256
  67. colour mode etc.)
  68.  
  69. 4b 'X' and 'Y' are the XEigFactor and YEigFactor values respectively of the
  70. current mode (see SWI OS_ReadModeVariable). These are defined as follows:
  71. XEigFactor = external horizontal resolution / internal horizontal resolution
  72. YEigFactor = external vertical resolution / internal vertical resolution
  73.  
  74.  
  75.  
  76. Have a look at the supplied spritefiles in this directory to see some
  77. examples. If you design some fantastic good-looking sprites, I'd love to see
  78. them! (My address is listed at the end of the !Help file).
  79.